package com.sl.water.service.impl;

import cn.hutool.json.JSONArray;
import cn.hutool.json.JSONUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sl.water.dao.BRCunDao;
import com.sl.water.entity.BRCun;
import com.sl.water.service.BRCunService;
import org.springframework.stereotype.Service;


@Service
public class BRCunServiceImpl extends ServiceImpl<BRCunDao, BRCun> implements BRCunService {

    @Override
    public boolean batchSave(JSONArray data) {
        return this.saveBatch(JSONUtil.toList(data,BRCun.class), 500);
    }
}

